package com.salesmanager.core.business.common.model;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Liutong on 9/8/15.
 * 数据历史操作状态
 */
public enum HistoryOperationType {
    CREATE("创建"),

    UPDATE("修改"),

    START("开始"),

    STOP("暂停"),

    UNAVAILABLE("下架"),

    AVAILABLE("上架"),

    ALLOW_SCHEDULE("允许排期"),

    DENIED("审核拒绝");


    private String value;

    private static Map<String,HistoryOperationType> map = new HashMap<String, HistoryOperationType>();

    static {
        for (HistoryOperationType operationType : HistoryOperationType.values()){
            map.put(operationType.name(),operationType);
        }
    }

    public static HistoryOperationType getByName(String name){
        return map.get(name);
    }
    HistoryOperationType(String value){
        this.value = value;
    }

    public String getValue() {
        return value;
    }


}
